package com.ddwanglife.jvm;

import java.util.Random;
import java.util.concurrent.TimeUnit;

public class JVMDemo {
    public static void main(String[] args) throws InterruptedException {
        /*long totalMemory = Runtime.getRuntime().totalMemory();
        long maxMemory = Runtime.getRuntime().maxMemory();
        System.out.println("-Xmx:"+totalMemory);
        System.out.println("-Xms:"+maxMemory);*/
        String str = "www.helloworld.com";
        while(true){
            str += str+new Random().nextInt(88888888)+new Random().nextInt(999999999);
            TimeUnit.SECONDS.sleep(1);
        }
    }
}
